package com.ruoyi.cake.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 蛋糕对象 cake
 *
 * @author zichen
 * @date 2024-10-22
 */
public class Cake extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 蛋糕名称 */
    @Excel(name = "蛋糕名称")
    private String name;

    /** 蛋糕品牌 */
    @Excel(name = "蛋糕品牌")
    private String brand;

    /** 蛋糕重量 */
    @Excel(name = "蛋糕重量")
    private String weight;

    /** 蛋糕规格 */
    @Excel(name = "蛋糕规格")
    private String standards;

    /** 蛋糕数量 */
    @Excel(name = "蛋糕数量")
    private int count;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date storeTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setBrand(String brand)
    {
        this.brand = brand;
    }

    public String getBrand()
    {
        return brand;
    }
    public void setWeight(String weight)
    {
        this.weight = weight;
    }

    public String getWeight()
    {
        return weight;
    }
    public void setStandards(String standards)
    {
        this.standards = standards;
    }

    public String getStandards()
    {
        return standards;
    }
    public void setStoreTime(Date storeTime)
    {
        this.storeTime = storeTime;
    }

    public Date getStoreTime()
    {
        return storeTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("brand", getBrand())
            .append("weight", getWeight())
            .append("standards", getStandards())
            .append("storeTime", getStoreTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
